<?php

namespace app\common\model;

use app\extra\BaseModel;


class Collection extends BaseModel
{
    public function setAddedField(&$item){
        // $item['public_desc'] = \app\extra\DBCont::getPublishStatus($item['publish']);
        $school = model('school')->where('id', $item['school_id'])->find();

        $item['school_name']=$school['name'];
        $item['school_photo']=$school['photo'];

    }
}
